const Mock = require('mockjs')
// 全局 安装 插件 json-server@0.17.4     
// npm install json-server@0.17.4 -g
// json-server index.js -p 8000
module.exports = () => {
  // 生成  增删改查接口
  return Mock.mock({
    "list|100": [{
      "id": "@id",
      "sort": 0,
      "menuName": "@ctitle",
      "conts": "@ctitle",
      "methods": "@ctitle",
      "path": "/list",
      "level|1": ["管理后台", "供应商后台"],
      "state": "@boolean"
    }]
  })
}